<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>后台管理登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@include file="/WEB-INF/base.jspf"%>
<style type="text/css">
</style>
</head>
<body style="background: #f5f5f5c2;">
	<div style="margin:0 calc(50% - 200px); text-align: center;width:400px;margin-top: 20vh;">
		<h3 style="color:#555;margin-bottom: 20px;">后台管理系统</h3>
		<div style="background:#E3E3E3;border-radius: 5px;border:1px solid #d2cfcf;padding:30px 15px;">
			<div class="input-group input-group-lg">
				<span class="input-group-addon"><span class="glyphicon glyphicon-user" style="color: #AF3836;"></span></span>
				<input class="form-control" id="name" value="" />
			</div>
			<div class="input-group input-group-lg" style="margin: 30px 0;">
				<span class="input-group-addon"><span class="glyphicon glyphicon-lock" style="color: #AF3836;"></span></span>
				<input class="form-control" id="pass" type="password" value="" />
			</div>
			<button class="btn btn-lg btn-primary" onclick="Login()" style="width: 50%;">登　录</button>
		</div>
	</div>
	
	<div class="col-xs-4"></div>
	
	<div style="position: fixed;bottom: 10px;width: 100%;text-align: center;">
		<p>© Copyright 2017-2028 All Rights Reserved 大发国际彩票娱乐城 </p>
	</div>
<script>
if (top != window) {
   top.location.href = window.location.href;    
}
	function Login(){
		var name = $('#name').val();
		var pass = $('#pass').val();
		$.ajax({
             dataType: "json",
             type: "post",
             url: "/kajhsgweasdqtwehghasfdnsak6868/backManagerLogin.do",
             data: {
            	 "name": name,
            	 "pass": pass 
            	 },
             success: function (json) {
				if(json.data==1){
						window.location.href="/kajhsgweasdqtwehghasfdnsak6868/index.do";
					} else {
						alert(json.message);
					}
				}
			});
		}
</script>
</body>
</html>